package com.jhgsys.internal.incentive.service;

import com.jhgsys.internal.incentive.entity.IncentiveRewardConfig;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author Lujiachen
 * @date 2024-08-12 09:56:23
 */
public interface IIncentiveRewardConfigService extends IService<IncentiveRewardConfig> {
    /**
     * 查询（分页）
     * @author Lujiachen
     * @date 2024-08-12 09:56:23
     * @param request QueryRequest
     * @param incentiveRewardConfig incentiveRewardConfig
     * @return IPage<IncentiveRewardConfig>
     */
    IPage<IncentiveRewardConfig> findIncentiveRewardConfigPage(QueryRequest request, IncentiveRewardConfig incentiveRewardConfig);

    /**
     * 查询（所有）
     * @author Lujiachen
     * @date 2024-08-12 09:56:23
     * @param incentiveRewardConfig incentiveRewardConfig
     * @return List<IncentiveRewardConfig>
     */
    List<IncentiveRewardConfig> findIncentiveRewardConfigList(IncentiveRewardConfig incentiveRewardConfig);

    /**
    * 根据ID查询
    * @author Lujiachen
    * @date 2024-08-12 09:56:23
    * @param id
    * @return IncentiveRewardConfig
    */
    IncentiveRewardConfig findIncentiveRewardConfigById(String id);

    /**
     * 根据所属公司查询
     * @author Lujiachen
     * @date 2024-08-12 09:56:23
     * @param tenantId
     * @return IncentiveRewardConfig
     */
    IncentiveRewardConfig findIncentiveRewardConfigByTenantId(String tenantId);

    /**
     * 新增
     * @author Lujiachen
     * @date 2024-08-12 09:56:23
     * @param incentiveRewardConfig incentiveRewardConfig
     */
    void createIncentiveRewardConfig(IncentiveRewardConfig incentiveRewardConfig);

    /**
     * 修改
     * @author Lujiachen
     * @date 2024-08-12 09:56:23
     * @param incentiveRewardConfig incentiveRewardConfig
     */
    void updateIncentiveRewardConfig(IncentiveRewardConfig incentiveRewardConfig);

    /**
     * 逻辑删除
     * @author Lujiachen
     * @date 2024-08-12 09:56:23
     * @param incentiveRewardConfig incentiveRewardConfig
     * @param incentiveRewardConfigIds incentiveRewardConfigIds
     */
    void deleteIncentiveRewardConfig(IncentiveRewardConfig incentiveRewardConfig,String incentiveRewardConfigIds);

    /**
    * 物理删除
    * @author Lujiachen
    * @date 2024-08-12 09:56:23
    * @param incentiveRewardConfigIds incentiveRewardConfigIds
    */
    void physicallyDeleteIncentiveRewardConfig(String incentiveRewardConfigIds);
}
